package com.example.qny01.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import qny01.pojo.Teacher;

import java.util.List;

@Mapper
public interface TeacherMapper {
    List<Teacher> selectAll();
    Teacher selectById(Integer id);
    int insert(@Param("t") Teacher teacher);
    int delete(Integer id);
    int update(@Param("t") Teacher teacher);
}
